import {goodlist} from "./good.js"
var ulBox=document.getElementsByTagName("ul")[0]
goodlist.showGoods().then(function(e){
    var html=""
e.forEach(item => {
    html+=`<li class="sbox">
    <a href="gooddetail.html?goods_id=${item.goods_id}">
    <div class="pic"><img src="http:${item.goods_pic}"/></div>
    <div class="info">${item.goods_title}<h3 style="color:#e3393c;font-weight:400;">￥${item.goods_current_price}&nbsp;&nbsp;<i>${item.goods_trade_num}</i></h3></div>
    </a>
    </li>`
});
ulBox.innerHTML=html;
})